<extend name="./Application/Admin/View/Index/index.html"/>

<block name="box">
    <div class="view-product">
        <div class="info-center">
            <div class="manage-head">
                <h6 class="padding-left manage-head-con">团购订单列表</h6>
            </div>
            <div class="offcial-table input-table table-margin clearfix">
                <if condition="$list eq null">
                    <div class="tr non-info show border-bottom-none">
                        <span>没查询到符合条件的记录</span>
                    </div>
                    <else />
                    <table class="table text-center">
                        <tr>
                            <th class="text-center">订单号</th>
                            <th class="text-center">用户名</th>
                            <th class="text-center">商品名</th>
                            <!--<th class="text-center">优惠</th>-->
                            <th class="text-center">价格</th>
                            <th class="text-center">是否成团</th>
                            <th class="text-center">是否支付</th>
                            <th class="text-center">是否发货</th>
                            <th class="text-center" style="width: 150px;">是否完成</th>
                            <th class="text-center"style="width: 150px;">创建时间</th>
                            <!--<th class="text-center">是否失效</th>-->
                            <th class="text-center">操作</th>

                        </tr>
                        <foreach  name="list" item="vo" key="k">
                            <tr>
                                <td>{{$vo.order_id}}</td>
                                <td>{{$vo.uname}}</td>
                                <td>{{$vo.gname}}</td>
                                <!--<td>¥{{$vo.price}}</td>-->
                                <td>¥{{$vo.price}}</td>
                                <td>{{$vo['is_status']==0?'未成团':'已成团'}}</td>
                                <td>{{$vo['is_pay']==0?'否':'是'}}</td>
                                <td>{{$vo['is_deliver']==0?'未发货':'已发货'}}</td>
                                <td>{{$vo['is_ok']==0?'未确认':'已确认'}}</td>
                                <td>{{$vo.create_time}}</td>

                                <td>
                                    <a class="layui-btn" href="{{:U('Group/is_open',array('id'=>$vo['id'],'sub'=>$vo['is_deliver']))}}">发货</a>
                                </td>

                            </tr>
                        </foreach>
                    </table>
                    <div class="row center-block">
                        <div class="layui-col-md5 layui-col-md-offset5">
                            {{$page}}
                        </div>
                    </div>

                </if>

            </div>
        </div>
        <div class="show-page padding-big-right hidden">
            <div class="page">
            </div>
        </div>
    </div>

</block>
